set(kwin_wayland_wrapper_SOURCES
    kwin_wrapper.cpp
    wl-socket.c
)

ecm_qt_declare_logging_category(kwin_wayland_wrapper_SOURCES
    HEADER
        wrapper_logging.h
    IDENTIFIER
        KWIN_WRAPPER
    CATEGORY_NAME
        deepin-kwin_wayland_wrapper
    DEFAULT_SEVERITY
        Warning
)

add_executable(deepin-kwin_wayland_wrapper ${kwin_wayland_wrapper_SOURCES})

target_link_libraries(deepin-kwin_wayland_wrapper Qt5::Core Qt5::DBus KF5::DBusAddons KWinXwaylandCommon)
set_property(TARGET deepin-kwin_wayland_wrapper PROPERTY C_STANDARD 11)
install(TARGETS deepin-kwin_wayland_wrapper ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
